﻿@using NigiriClub.WebUI.Models

<div class="affix">
    <!-- Just for example -->
    <iframe src="https://www.google.com/calendar/embed?title=%D0%A0%D0%B0%D1%81%D0%BF%D0%B8%D1%81%D0%B0%D0%BD%D0%B8%D0%B5&amp;showNav=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;height=190&amp;wkst=2&amp;bgcolor=%23ffffff&amp;src=vita.loginova%40gmail.com&amp;color=%232F6309&amp;ctz=Europe%2FMoscow" style="border-width: 0" width="220" height="190" frameborder="0" scrolling="no"></iframe>

    <!-- TODO: Fix -->
    <p>
        <div class="btn-group">
            <button type="button" class="btn dropdown-toggle btn-sm" data-toggle="dropdown">
                Категории
                <span class="caret"></span>
            </button>
            <ul class="dropdown-menu">
                @using (Entities db = new Entities())
                {
                    foreach (var category in db.Category)
                    {
                    <li>@Html.ActionLink(category.Name, "Index", new { category = category.Name })</li>
                    }
                }
            </ul>
        </div>
    </p>

    <ul class="list-inline">
        @using (Entities db = new Entities())
        {
            foreach (var tag in db.Tag)
            {
            <li>@Html.ActionLink(tag.Name, "Index", new { tag = tag.Name })</li>
            }
        }
    </ul>
</div>
